package com.shelly.memento;

/**
 * @author: Shelly
 * @create: 2023-01-13 10:30:49
 * @describe:
 */
public class Main {
    public static void main(String[] args) {
        TankFrame t = new TankFrame(new Tank("t1"),new Bullet("b1"));
        System.out.println(t.toString());
        t.save();
        t.setBullet(new Bullet("b2"));
        t.setMytank(new Tank("t2"));
        System.out.println(t.toString());
        t.load();
        System.out.println(t.toString());
    }
}
